package com.hc.dubboclient.controller;

import com.hc.service.HelloService;

public class HelloServiceStub implements HelloService {

    private HelloService helloService;

    public HelloServiceStub(HelloService helloService) {
        this.helloService = helloService;
    }

    @Override
    public String sayHello(String name) {
        if(name == null || name.isEmpty()){
            return "Hello World";
        }
        return helloService.sayHello(name);
    }
}
